﻿@using CodeCamp.Models.Shared
@model System.Web.Mvc.HandleErrorInfo

@{
    ViewBag.Title = "General Error";
}

<h2>An Error Has Occurred</h2>

@if (Model != null)
{
    if (User.Identity.IsAuthenticated && User.IsInRole(CCRoles.RoleNames.BigCheeze))
    {
        <p>@Model.Exception.GetType().Name:<br />
            @Model.Exception.Message<br />
            thrown in @Model.ControllerName / @Model.ActionName</p>
    }
    else
    {
        <p>An error occurred in @Model.ControllerName / @Model.ActionName</p>
    }
}